<?php
/**
 * xushuhui
 * 2017/8/15
 * 15:59
 */

namespace app\lib\validate;


class CardValidate extends BaseValidate
{
	protected $rule = [
		['bank','require|number','银行必须输入|银行不符合规则'],
		['card_number','require|isBankCard','银行卡号必须输入|银行卡号不符合规则'],
		['CVN2','require|number','CVN2必须输入|CVN2不符合规则'],
		['validityDate','require|length:4','有效期必须输入|有效期不符合规则'],
		['billDate','require|number|between:1,31','账单日必须输入|账单日不符合规则|账单日必须在1-31之间'],
		['repayDate','require|number|between:1,31','还款日必须输入|还款日不符合规则|还款日必须在1-31之间'],

		['phone_number','require|isMobile','手机号码必须输入|手机号码不符合规则'],

		['bankcode','require|number|length:4','短信验证码不能为空|短信验证码只能是数字|短信验证码只能是四位'],


	];

}